#pragma once

#include <QObject>
#include <QDir>
#include <string>


struct aiScene;


class Model3D : public QObject
{
    Q_OBJECT
public:
    explicit Model3D(QObject *parent = nullptr);
    virtual ~Model3D();

    bool loadScene(const QString& filePath, QString& errMsg);
    const aiScene* scene() const {return  scene_;}
    const QDir& dir() const {return modelDir_;}

signals:
    void sceneChanged();

public slots:

private:
    aiScene*    scene_;
    QDir        modelDir_;
};
